package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("front_shopping_cart")
public class FrontShoppingCart {
    @TableId(type = IdType.AUTO)
    private int cartId;
    private int userId;
    private int commodityId;
    private int quantity;
    private Date createTime;
    private int  subtotal;
    private int checkTag;


    // 映射购物项的商品
    @TableField(exist = false)
    private Commodity commodity;
    // 映射购物项的商品图片
    @TableField(exist = false)
    private List<ProductImage> commodityPictureList;

}
